﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StudentSearchWindow.ascx.cs" Inherits="ExaminationSys.View.SystemManage.StudentSearchWindow" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<ext:Window 
    ID="StudentInfoSearch" 
    runat="server" 
    Icon="Group" 
    Title="用户管理(学生信息)高级查询"
    Width="330" 
    Height="310" 
    AutoShow="false" 
    Modal="true" 
    Hidden="true"
    Layout="Fit">
    <Items>       
        <ext:FormPanel 
            ID="StudentSearchPanel" 
            runat="server" 
            Icon="ChartOrganisation"
            DefaultAnchor="95%"
            Padding="5"
            BodyPadding="10">
            <Items>
                <ext:TextField ID="UserID" Name="UserID" runat="server" FieldLabel="学号" /> 
                <ext:TextField ID="LoginID" Name="LoginID" runat="server" FieldLabel="登录名" />
                <ext:TextField ID="UserName" Name="UserName" runat="server" FieldLabel="学生姓名" />
                <ext:TextField ID="CollegeName" Name="CollegeName" runat="server" FieldLabel="学院" />
                <ext:TextField ID="MajorName" Name="MajorName" runat="server" FieldLabel="专业" />
                <ext:TextField ID="ClassName" Name="ClassName" runat="server" FieldLabel="班级" /> 
                <ext:RadioGroup 
                    ID="RadioGroupPub" 
                    runat="server" 
                    FieldLabel="是否锁住"                             
                    Padding="5"
                    >
                    <Items>
                        <ext:Radio ID="RadioAll" runat="server" BoxLabel="全部" Checked="true" />
                        <ext:Radio ID="RadioYes" runat="server" BoxLabel="是"  />
                        <ext:Radio ID="RadioNo" runat="server" BoxLabel="否" />
                    </Items>
                </ext:RadioGroup>
            </Items>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="SearchButton" runat="server" Text="查询" Icon="Find">
            <DirectEvents>
                <Click OnEvent="SearchStudentInfo" Failure="Ext.MessageBox.alert('process failed', 'Error during ajax event');">
                </Click>
            </DirectEvents>
            
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                 <Click Handler="#{StudentInfoSearch}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>